package com.hospital.demo.service.impl.jiashuai;

import com.hospital.demo.mapper.jiashuai.IWorkerDao;
import com.hospital.demo.model.jiashuai.Worker;
import com.hospital.demo.service.jiashuai.IWorkerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkerServiceImpl implements IWorkerService {
    @Autowired
    private IWorkerDao iWorkerDao;

    @Override
    public List<Worker> selectWorker() {
        return iWorkerDao.selectWorker();
    }

    @Override
    public List<Worker> selectWorkerByProId(Worker worker) {
        return iWorkerDao.selectWorkerByProId(worker);
    }

    @Override
    public void insertworker(Worker worker) {
        iWorkerDao.insertworker(worker);
    }

    @Override
    public void deleteworker(Integer did) {
        iWorkerDao.deleteworker(did);
    }

    @Override
    public Worker get(Integer id) {
        return iWorkerDao.get(id);
    }

    @Override
    public void updateworker(Worker worker) {
        iWorkerDao.updateworker(worker);
    }
}
